<div id="header" class="l-f l-f-middle">
    <div id="headerLeft"><i class="iconfont">&#xf602;</i></div>
    <div id="headerTitle" class="l-f-g1 t-center">123</div>
    <div id="headerRight"></div>
    <script>
        $('#headerLeft i').on('click', function(){
            history.back();
        });
    </script>
</div>

<div id="bodyer">
    <div id="insideAd">
        <a href="#"><img src="<?=$adModel->img_path;?>" alt=""/></a>
    </div>
    <div id="sad">
        <div class="tips t-center">供求信息发布联系热线：400-123-1234 <br/>（早8:00-晚6:00）</div>
        <div class="tabTitle l-f t-center">
            <div class="l-f-g1">
                <a href="/home/info?type=1" class="<?= $type == 1 ? 'current' : ''?>">供货信息</a>
            </div>
            <div class="space"></div>
            <div class="l-f-g1">
                <a href="/home/info?type=2" class="<?= $type == 2 ? 'current' : ''?>">求购信息</a>
            </div>
        </div>
        <div class="list">
            <?php
                foreach($supplies as $k => $value){
            ?>
            <div class="item">
                <a href="<?=\yii\helpers\Url::to(['/home/content' , 'sid' => $value['id']])?>" class="l-f l-f-middle">
                    <div class="i"><?=$k + 1;?></div>
                    <div class="cont l-f-g1">
                        <div class="l-f l-f-middle">
                            <div class="l-f-g1">
                                <div class="row1"><?=$value['title']?></div>
                                <div class="row2"><?=$value['content']?></div>
                            </div>
                            <div class="icon"><i class="iconfont">&#xf606;</i></div>
                        </div>
                    </div>
                </a>
            </div>
                    <?php
                }
            ?>
        </div>
        <div class="next l-f l-f-middle t-center">
            <div class="l-f-g1">
                <a href="<?=$page['next']?>">下一页</a>
            </div>
        </div>
    </div>
</div>
<?=$this->render('_foot');?>